Method and Device for Mobile Terminal Scene Management and Backup Recovery

ABSTRACT

A method for mobile terminal scene management and backup recovery is disclosed, including: setting different scenes, dividing terminal applications into general local settings, local applications and third party installation applications, presetting status saving formats of each application under different scenes to be used for recovering applications accordingly under the different scenes; the terminal storing the activation hierarchical relationship of the applications and the call relationship between the applications under the different scenes; when a scene is saved, saving global configuration, and each activated application recording the current usage status as a scene record according to the preset status saving format; when a scene is recovered, recovering the global configuration for the selected scene according to the saved global configuration, and then according to the activation hierarchical relationship and the call relationship between the applications under this scene, starting the applications one by one based on the scene record.

TECHNICAL FIELD

The present invention relates to the scene management and backup recovery technology when a mobile terminal is running, and more specifically, to a method and device for scene management and backup recovery when a mobile terminal is running.

BACKGROUND OF THE RELATED ART

With the development of the mobile terminal technology and an increasingly important position occupied by it in the user's daily life, the mobile terminal is not just a contact tool in the future but more likely to become a mobile work platform. The smart mobile terminal has the features of: having the support of a powerful operating system, allowing users to run multiple applications simultaneously; in addition to traditional applications such as short messages, phones, and so on, allowing users to easily install and remove the third-party applications.

The advantages of mobility and portability make the mobile terminal increasingly used in the daily life and work, especially, in the diverse working scenes of the business people: different time zones, different working environments, personalized configurations, scenes consisting of audio and video, graphics, images, text, regular text, the current application usage status, and so on, and the mobile terminal users are provided with more flexible usage modes, if the switch can be performed quickly between different usage scenes of the mobile terminal, the user experience will be greatly enhanced.

However, currently the mobile terminal has no usage mode of the working scene but a simple data backup function, the users can simply back up and recover a data backup, for example, the current short messages, address book and other types of data content are saved as a backup. The backups at multiple time points use the ghost disk mirroring method, which has very large system overhead of the disk capacity and the mirroring recovery; if any method other than the disk mirroring is used for data backup, there is no such a good method that can uniformly recover the status of the local applications and the third party installation applications.

Since the business of the current terminal users is increasing, the requirements for the personalized usage scenes consisting of audios and videos, graphics, images, text, regular text, the current application usage status, and so on are more and more obvious, if the users can distinguishingly save the current usage scene according to different working and living scenes, the switch of work from one place to another or the switch from work to leisure only needs to be performed under different scenes, with both enhanced personalization and customization; avoiding to use the disk mirroring method will greatly enhance the user experience and performance of the terminal.

Therefore, how to define different working scenes and implement the backup and recovery according to the user's selection so as to provide more flexible ways of using the mobile terminal is a problem that the technical personnel should consider.

SUMMARY OF THE INVENTION

The technical problem to be solved in the present invention is to provide a method and device for mobile terminal scene management and backup recovery to define different working scenes, and to back up and recover the scenes according to the user's selection, so as to provide more flexible ways of using the mobile terminal.

In order to solve the aforementioned technical problem, the present invention provides a method for mobile terminal scene management and backup recovery, comprising:

setting different scenes, dividing applications of a terminal into: general local settings, local applications and third-party installation applications, presetting status saving formats of each applications under different scenes to be used for the application to recover accordingly under the different scenes;

the terminal saving an activation hierarchical relationship of the applications and a call relationship between the applications under the different scenes;

when saving the scenes, saving global configurations, and each activated application recording a current usage status as a scene record in accordance with the preset status saving format;

when recovering a scene, recovering the global configurations for the selected scene according to the saved global configurations, and then starting the applications one by one based on the scene record according to the activation hierarchical relationship and the call relationship between the applications in this scene.

Furthermore, the step of each activated application recording the current usage status as the scene record in accordance with the preset status saving format comprises:

when the application is a general local setting, the scene record recording the global configurations of the terminal;

when the application is a local application, the scene record recording a local application usage status, including one or more of user interface hierarchical relationship, commonly used configurations of the local application, and the data currently cached and used on a top-layer page;

when the application is a third-party installation application, the scene record recording whether the third party installation application is activated or not and the object used by the third party installation application in a variety of scenes.

Furthermore, the step of each activated application recording the current usage status in accordance with the preset status saving format comprises: saving data being edited.

Furthermore, the method also comprises:

setting emergency scenes, saving and restoring according to the emergency scenes when an emergency status occurs.

In order to solve the aforementioned technical problem, the present invention also provides a device for mobile terminal scene management and backup recovery, comprising:

a setting module, which is used to set different scenes, and divide applications of a terminal into: general local settings, local applications and third-party installation applications, preset status saving formats of each application under different scenes to be used for the applications to recover accordingly under the different scenes;

a storing module, which is used to store an activation hierarchical relationship of the applications and a call relationship between the applications under the different scenes;

a scene saving module, which is used to save global configurations when saving the scenes, where each activated application records a current usage status as a scene record in accordance with the preset status saving format;

a scene recovering module, which is used to, when recovering a scene, recover the global configurations for the selected scene according to the saved global configurations, and then start the applications one by one based on the scene record according to the activation hierarchical relationship and the call relationship between the applications under this scene.

Furthermore, the scene saving module is further used to:

when the application is a general local setting, record the global configurations of the terminal as the scene record;

when the application is a local application, record a local application usage status, including one or more of the user interface hierarchical relationship, the commonly used configurations of the local application, the data currently cached and used on a top-layer page, as the scene record;

when the application is a third-party installation application, record whether the third party installation application is activated or not as well as the object used by the third party installation application in each scene as the scene record.

Furthermore, said scene saving module is further used to save the data being edited.

Furthermore,

the settings module is further used to set emergency scenes, correspondingly,

the scene saving module is further used to save the emergency scene when an emergency status occurs;

the scene recovering module is further used to recover the emergency scene during the recovery after the emergency status occurs.

A terminal, which comprises the aforementioned device.

With the method and device in the present invention, the application status, comprising the status of each application program and the data being processed by the program, in the mobile terminal can be saved; moreover, the present invention can recover the applications under each scene very well according to the preset application hierarchical relationship. When the mobile terminal is in a critical status (for example the status of almost no power), the purpose of saving the emergency scene data can be achieved, and the data are stored in a nonvolatile storage medium to be used for the next recovery, which effectively improves the security of the dynamic data. The method can greatly enrich the usage modes of the mobile terminal used by the users, facilitate to switch so as to be suitable for the work and life needs under different circumstances, and it is applicable to the emergency situations and the data backup. In summary, the present invention has positive assisting function in the enhancement of the user experiment of the mobile terminal.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a flow chart of a method for mobile terminal scene management and backup recovery in accordance with the present invention;

FIG. 2 is a structural diagram of a device for mobile terminal scene management and backup recovery in accordance with the present invention;

FIG. 3 is a flow chart of scene backup in accordance with an embodiment of the present invention;

FIG. 4 is a flow chart of scene recovery in accordance with an embodiment of the present invention;

FIG. 5 is a flow chart of local application scene recovery in accordance with an embodiment of the present invention.

PREFERRED EMBODIMENTS OF THE PRESENT INVENTION

The main idea of the present invention is to set different scenes and divide the terminal applications into: general local settings, local applications and third-party installation applications, preset the status saving formats of each application in different scenes to be used for the application to recover accordingly in the specific scene; record the activation hierarchical relationship and the calling relationship between the applications in different scenes; when saving a scene, save the global configurations, and each activated application records the current usage status as the scene record in accordance with the preset status saving format; when recovering a scene, recover the global configurations for the selected scene according to the saved global configurations, and then start the applications one by one based on the scene record according to the activation hierarchical and calling relationships of the applications in this scene.

The implementation of the present invention will be described below in further detail with reference to the accompanying drawings.

The implementation of the present invention is based on the following settings:

1. set different scenes and divide the terminal applications into: general local settings, local applications and third-party installation applications, set the status saving formats of each application under different scenes to be used for the application to recover accordingly in the different scenes;

the status saving formats are mainly the data saving formats of the applications, such as the alarm clock, which is set with an item of 7:00 am, then there is an entry in the database to indicate this record.

Among them, the general local settings record the terminal global configurations, including the fonts, backgrounds, theme styles, telephone service ring tones, and so on; the local applications record the application usage status, including the user interface (UI) hierarchical relationship, the commonly used configurations of the applications, the data currently cached and used on the top-layer page, and so on; the third-party installation application records whether the application is activated or not and the object, such as the file storage path, used by the application in various scenes;

2, set the application manager to be used to record an application activation list in a specific scene, where the application activation list records the terminal application usage status in the specific scene in accordance with the activation hierarchical relationship and the task calling relationship between the applications;

for example, the activation hierarchical relationship is the general application hierarchical relationship, for example, activate first when selecting to send a text message, if look up the address book and then activate, the text message is covered above the address book, and the address book is revealed after the short message exits. The task calling relationship comprises: whether the applications call each other or not. The application usage status comprises the specific status, including the saved data, and what is doing, such as a half of the data of a text message to be sent to his/her family.

3, establish a scene manager to save the global settings when saving the scenes, request each activated application to record the current usage status as the scene record according to the status saving format; request the application manager to save the scene application activation list whose description is associated with the current scene record.

The global settings are the general setting items, such as background, font, and so on, rather than the application configuration. The application is self-explanatory on its own scene data, the manager does not need to know the saving format of the short messages and simply requires the application to save and restore.

Based on the above settings, when recovering a scene, the application manager restores the global configurations according to the selected scene, and then starts the applications one by one according to the call relationship between the applications under this scene, the startup of the application is performed according to the scene record; the scene saving mechanism may be associated with (optional) emergency scenes such as low power, timing saving, and so on; the scene saving may be associated with the current data, and may cover the data backup use (optional). The current data, such as the short message, may only record which the interface now it is, whether a half of the contents is to be completed, but all the short message information in the current database can be regarded as a part of the scene backup.

Wherein, the terminal applications are divided, and in the description of the global settings and the local scene backup, the scene details can be described in relatively more detail, while the description degree of the third party installation application is rather coarse. Wherein, the global settings only use the current setting value of the backup system; the local application records the UI hierarchical relationship, the individual setting items of the application, and the data currently being edited (if it is editable) by the user cached by the UI in accordance with the current usage status; the third-party installation application only records the operation object of the application, for example, the text editor only needs to record the name and the path of the document currently being edited.

Among them, the application manager maintains the relationship between the startup hierarchical relationship of the current application and the relationship between the tasks, which is an important feature of the current scene, and when selecting to recover a scene, it is also very important to recover the calling order and relationship of the applications in the scene, and when saving the scene, the application manager can save the call hierarchical relationship to be used in the scene recovery.

Among them, the users can select to save the current scene through the scene manager, and after a scene saving instruction is received, the scene manager saves the backup of the current global setting area, and then in turn sends the scene saving instruction to each application registered in the application manager. If it is a local application, each application records its own service setting items, such as the short message status report and the short message center number, and the UI call hierarchy, according to its own scene saving format, and if the UI has a user editing interface, it caches the editing data input by the UI user; if it is a third-party application, it caches the name and path of file object currently operated by the user. All the backup records are marked to be associated with the scene name.

Wherein, when the user selects to recover a scene, the scene manager recovers the global setting items, and then reads the scene record, and initiates a scene recovery command to the application according to the up-down relationship of the list, and requires the application to recover and start up in accordance with the scene record. If it is a local application, the local application self-explains and recovers the scene records, recovers the UI hierarchical relationship and the data being edited by the user in the UI; the third-party installation application recovers and starts up by opening the corresponding file object. After the recovery is completed, the mobile terminal is restarted if necessary.

Wherein, since the scene can be understood as a snapshot used by the user to some extent, it can be associated with the scene saving in emergency situations such as low power, and thus it can play the role of the emergency recovery. If each applications scene is associated with the current data of the application when each application scene is saved, it plays the role of data backup at some time point.

Specifically, referring to FIG. 1, which is a flow chart of the method for mobile terminal scene management and backup recovery in the present invention, and said method comprises:

step 101: setting different scenes, dividing terminal applications into: general local settings, local applications and third-party installation applications, presetting status saving formats of each application under different scenes to be used for the application to recover accordingly under the different scenes;

step 102: recording the activation hierarchical relationship and the call relationship between the applications under the different scenes;

step 103: when saving the scenes, saving the global configurations, and each activated application recording the current usage status as the scene record in accordance with the preset status saving format;

step 104: when recovering a scene, recovering the global configurations for the selected scene according to the saved global configurations, and then starting the applications one by one based on the scene record according to the activation hierarchical relationship and the call relationship between the applications in this scene.

Preferably, the step of each activated application recording the current usage status as a scene record in accordance with the preset status saving format comprises:

when the application is a general local setting, the scene record recording the terminal global configurations;

when the application is a local application, the scene record recording the application usage status, including one or more of the user interface hierarchical relationship, the commonly used configuration of the application, and the data cached and used on the top-layer page;

when the application is a third-party installation application, the scene record recording whether the third party installation application is activated or not and the object used by this application in a variety of scenes.

In a preferred embodiment of the present invention, the step of each activated application recording the current usage status in accordance with the preset status saving format comprises: saving the data being edited.

In a preferred embodiment of the present invention, the method also comprises:

setting emergency scenes, saving and restoring according to the emergency scenes when an emergency status occurs.

FIG. 2 shows a structural diagram of the device for mobile terminal scene management and backup recovery, and the device comprises:

the setting module 20, which is used to set different scenes, and divide terminal applications into: general local settings, local applications and third-party installation applications, preset status saving formats of each application under different scenes to be used by the applications to recover accordingly under the different scenes;

the storing module 21, which is used to store the activation hierarchical relationship and the call relationship between the applications under the different scenes;

the scene saving module 22, which is used to save the global configurations when saving the scenes, where each activated application records the current usage status as a scene record in accordance with the preset status saving format;

the scene recovering module 23, which is used to, when recovering a scene, recover the global configurations for the selected scene according to the saved global configurations, and then start the applications one by one based on the scene record according to the activation hierarchical relationship and the call relationship between the applications under this scene.

The saving module 21 performs the function of the application manager, and the scene saving module 22 and the scene recovering module 23 perform the function of the scene manager.

In a preferred embodiment of the present invention, the scene saving module 22 is further used to:

when the application is a general local setting, record the terminal global configurations as the scene record;

when the application is a local application, record the local application usage status, comprising one or more of the user interface hierarchical relationship, the commonly used configuration of the local application, the data cached and used on the top-layer page, as the scene record;

when the application is a third-party installation application, record whether the third party installation application is activated or not and the object used by the third party installation application in each scene as the scene record.

In a preferred embodiment of the present invention, said scene saving module 22 is further used to save the data being edited.

In a preferred embodiment of the present invention,

the setting module 20 is further used to set emergency scenes, and correspondingly,

the scene saving module 22 is further used to save the emergency scene when an emergency status occurs;

the scene recovering module 23 is further used to recover the emergency scene during the recovery after the emergency status occurs.

The present invention also provides a terminal that comprises the aforementioned device.

The technical solution of the present invention will be illustrated below with reference to the examples in the specific applications.

In the following, a mobile terminal equipped with a smart operating system, a local application short message and a third-party installation application multimedia player will be taken as an example to describe the method for saving and recovering the mobile terminal scenes in the present invention with reference to the accompanying figures. The following description is made with reference to the flow chart of scene backup in FIG. 3, the flow chart of scene recovery in FIG. 4, and the flow chart of local application scene recovery in FIG. 5.

Setting the scene saving object of a mobile phone consists of three sets: (1) setting applications, configured as the data structure in a non-volatile memory. (2) local applications, herein the SMS, and so on. 3. third-party installation applications, which are the media player and so on herein.

Step 301: Create a scene description information saving structure;

The status saving format description positioning of the three sets is as follows: 1. the setting application is: (attribute, value), the key value pair such as {{language, 1 (Chinese)}, {background image, “path\bg.file.”}, { } . . . }, this structure can be determined according to the original attributes, for example, the alarm clock may be {{alarm 1, 1 (activated), time, date, snooze at each 5 minute}, . . . }. (2) the local application: which is a self-explanatory description structure, such as short message {{UI-1, main list, 0 (no data being edited by the user), NULL (user data)}, {UI-2 new short message, 1 (having data being edited by the user), data (data being edited by the user)}, . . . }. (3) the third-party installation application description structure, for example, the media player is {1 (start to run), path\playerlist (start to load the file object)}.

The application manager maintains the current application hierarchical relationship, which is 1. the media player, 2. the third-party installation application, and 3. the short message.

Step 302: The scene manager receives the scene saving command and saves the scene global setting configuration items;

Step 303: Create a timestamp as the scene description structure of the current time; acquire the application description information from the application manager;

step 304: obtain the next application description record;

Step 305: judge whether the application description is empty or not, if yes, proceed to step 306, otherwise proceed to step 307;

step 306: back up the current value of the setting, save the application information, and end;

step 307: judge whether it is a local application or not, if yes, proceed to step 308, otherwise proceed to step 309;

step 308: request the local application to save the scene configuration value, and proceed to step 304;

Step 309: save the path\ file name of the object operated by the third party installation application, and proceed to step 304.

Therefore, by obtaining the application list, each application is circularly notified in turn to back up its own current status to form the respective application description structure of the local and third-party applications; and further back up the current application scene record.

FIG. 4 is a flow chart of the scene recovery, and the process of the scene recovery comprises:

step 401: the user selects to recover to a certain scene;

step 402: recover the scene global setting configuration items; mainly comprising: recovering the setting configuration values of the scene, and if it is an alarm clock, clear the previous alarm clock setting and set the terminal according to the saved setting value;

step 403: extract the scene application description information, which is {media player, short message} here;

step 404: obtain the next application description record;

step 405: judge whether the application description is empty or not, if yes, proceed to step 406, otherwise proceed to step 407;

step 406: restart the terminal as needed, and end;

step 407: judge whether it is the local application or not, and if yes, proceed to step 409, otherwise proceed to step 408;

step 408: start the application according to the object file operated by the third-party installation application, and proceed to step 404;

step 409: request the local application to recover the scene configuration value;

step 410: the local application self-explains and recovers the scene configuration value, and proceed to step 404.

Therefore, during the scene recovery, all the applications are reset, and the applications are started in order; if it is the third-party installation application, tthe object operation file is taken as a parameter to start, the media player starts and loads the playlist file in the setting item to play; if it is a short message, whether the setting item corresponding to the scene name exists or not is judged, and then the application is started based on the sub-status description, the main interface is firstly started, and creation of the short message interface is started, and since creating the short message interface has the user cache data, the saved user data are inserted in the recipient and the text UI activeX.

In the following, the flow chart of the local application scene recovery shown in FIG. 5 will be taken as an example to make description in detail. The process of the local application scene recovery comprises:

step 501: the local application scene recovery starts;

step 502: read the saved local application scene description information;

step 503: obtain the next sub-status description record;

step 504: judge whether the status description is empty or not, if yes, proceed to step 505, otherwise proceed to step 506;

step 505: start the local application as needed, and end;

step 506: initialize the display view;

step 507: judge whether there are user cached data or not, if yes, proceed to step 508, otherwise proceed to step 503;

step 508: read the user data and insert the updated scene view.

The method and device for mobile terminal scene management and backup recovery in the present invention can customize the user's mobile terminal usage scenes to better unify the status recovery of the local applications and the third-party installation applications, to avoid the method for using the disk backup, which greatly enhances the availability of the mobile terminal in all aspects such as the user experience, system performance, and so on, and thereby facilitating the work and life of the mobile terminal users. 

1. A method for mobile terminal scene management and backup recovery, comprising the following steps of: setting different scenes, dividing applications of a terminal into: general local settings, local applications and third-party installation applications, presetting status saving formats of various applications under different scenes; the terminal saving an activation hierarchical relationship of the various applications and a call relationship between the applications under the different scenes; the method further comprising: when saving the scenes, saving global configurations, and each activated application recording a current usage status as a scene record in accordance with the preset status saving format under a selected scene; when recovering a scene, recovering the global configurations for the selected scene according to the saved global configurations, and then starting the applications one by one based on the scene record according to the activation hierarchical relationship and the call relationship between the applications in this scene.
 2. The method according to claim 1, wherein, the step of each activated application recording the current usage status as the scene record in accordance with the preset status saving format under a corresponding scene comprises: when the application is a general local setting, the scene record recording the global configurations of the terminal; when the application is a local application, the scene record recording a local application usage status, including at least one of user interface hierarchical relationship, commonly used configurations of the local application, and data currently cached and used on a top-layer page; when the application is a third-party installation application, the scene record recording whether the third party installation application is activated or not and objects used by the third party installation application in a variety of scenes.
 3. The method according to claim 1, wherein, the step of each activated application recording the current usage status in accordance with the preset status saving format under a corresponding scene comprises: saving data being edited.
 4. The method according to claim 1, wherein, the method also comprises: setting emergency scenes, presetting status saving formats of various applications under the emergency scenes; saving and restoring according to the emergency scenes when an emergency status occurs.
 5. A device for mobile terminal scene management and backup recovery, comprising: a setting module, which is used to set different scenes, and divide applications of a terminal into: general local settings, local applications and third-party installation applications, preset status saving formats of each application under different scenes under different scenes; a storing module, which is used to store an activation hierarchical relationship of applications and a call relationship between the applications under the different scenes; a scene saving module, which is used to save global configurations when saving the scenes, where each activated application records a current usage status as a scene record in accordance with the preset status saving format under a selected scene; a scene recovering module, which is used to, when recovering a scene, recover the global configurations for the selected scene according to the saved global configurations, and then start the applications one by one based on the scene record according to the activation hierarchical relationship and the call relationship between the applications under this scene.
 6. The device according to claim 5, wherein, the scene saving module is further used to: when the application is a general local setting, record the global configurations of the terminal as the scene record; when the application is a local application, record a local application usage status, including at least one of the user interface hierarchical relationship, the commonly used configurations of the local application, the data currently cached and used on a top-layer page, as the scene record; when the application is a third-party installation application, record whether the third party installation application is activated or not as well as objects used by the third party installation application in each scene as the scene record.
 7. The device according to claim 5, wherein, said scene saving module is further used to save the data being edited.
 8. The device according to claim 5, wherein, the settings module is further used to set emergency scenes, correspondingly, the scene saving module is further used to save based on the emergency scene when an emergency status occurs; the scene recovering module is further used to recover based on the emergency scene during the recovery after the emergency status occurs.
 9. A terminal, comprising the device for mobile terminal scene management and backup recovery in claim
 5. 